package payroll.trans;

import payroll.Employee;

// public class ChangeNameTransaction implements Transaction{
public class ChangeNameTransaction extends ChangeEmployeeTransaction{

    private String newName;

    public ChangeNameTransaction(int empId, String newName) {
        super(empId);
        this.newName = newName;
    }

    protected void doChange(Employee e){
        e.setName(newName);
    }


}
